package com.zbcz.crm.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.zbcz.crm.bean.CommonListBean
import com.zbcz.crm.databinding.ItemCommonListBinding

class AddContactsAdapter(private val dataList: List<CommonListBean>) :
    RecyclerView.Adapter<AddContactsAdapter.AddContactsViewHolder>() {
    override fun onCreateViewHolder(
        parent: ViewGroup,
        viewType: Int
    ): AddContactsAdapter.AddContactsViewHolder {
        val inflater = LayoutInflater.from(parent.context)
        val binding = ItemCommonListBinding.inflate(inflater, parent, false)
        return AddContactsViewHolder(binding)
    }

    override fun onBindViewHolder(holder: AddContactsViewHolder, position: Int) {
        val item = dataList[position]
        holder.bind(item)
    }

    override fun getItemCount(): Int = dataList.size

    inner class AddContactsViewHolder(private val binding: ItemCommonListBinding) :
        RecyclerView.ViewHolder(binding.root) {


        fun bind(item: CommonListBean) {

        }
    }

}